﻿@model Dziennik_MVC.Models.Entities.Prowadzacy

@{
    ViewBag.Title = "Dodaj prowadzącego";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
       <fieldset>
        <legend>Dodaj prowadzącego</legend>

        <div class="editor">
            @Html.LabelFor(model => model.login)
            @Html.EditorFor(model => model.login)
            @Html.ValidationMessageFor(model => model.login)
        </div>

        <div class="editor">
            @Html.LabelFor(model => model.haslo)
            @Html.EditorFor(model => model.haslo)
            @Html.ValidationMessageFor(model => model.haslo)
        </div>

        <div class="editor">
            @Html.LabelFor(model => model.imie)
            @Html.EditorFor(model => model.imie)
            @Html.ValidationMessageFor(model => model.imie)
        </div>

        <div class="editor">
            @Html.LabelFor(model => model.nazwisko)
            @Html.EditorFor(model => model.nazwisko)
            @Html.ValidationMessageFor(model => model.nazwisko)
        </div>

        <div class="editor">
            @Html.LabelFor(model => model.admin)
            @Html.EditorFor(model => model.admin)
            @Html.ValidationMessageFor(model => model.admin)
        </div>
              
        <p>
            <input type="submit" value="Dodaj prowadzącego" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("powrót do listy prowadzących", "List")
</div>
